//
// Created by Administrator on 2023/5/31.
//
#pragma once
#ifndef LDF_TABLE_H
#define LDF_TABLE_H


#include <QTableView>
#include <QStandardItemModel>

class LDF_Table: public QTableView
{
    Q_OBJECT
public:
    LDF_Table();


    LDF_Table(qint32 rows, qint32 columns);


    ~LDF_Table();


    void Set_Item_Count(qint32 rows, qint32 columns);


    QStandardItemModel* Get_Model();


    void Redraw(int width, int height);


    void Add_Vector(QVector<QVector<QString>> QVec);



private:
    qint32 rows {0};
    qint32 columns {0};


    bool Null_Table {true};


    QStandardItemModel* table_model;


};







#endif //LDF_TABLE_H
